home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 February
/
EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso
/
earcd
/
faq
/
amigafaq.lha
/
AmigaFAQ
/
programmer
/
HookEntry.asm
< prev
next >
Wrap
Assembly Source File
|
1994-07-28
|
533b
|
20 lines
xdef _HookEntry
_HookEntry:
movem.l d2-d7/a2-a6,-(sp) ; Preserve regs
; amiga.lib/HookEntry doesn't
; do this, but experience has
; proved that it would better
; do, as most called functions
; will initialize the a4
; register
move.l a1,-(a7) ; Put args on the stack
move.l a2,-(a7)
move.l a0,-(a7)
move.l 12(a0),a0 ; Call hook
jsr (a0)
lea 12(sp),sp ; Restore stack
movem.l (sp)+,d2-d7/a2-a6 ; Restore regs
rts